Applies paging to this client view.

Namespace:  C1.Data
Assembly:  C1.Data.Entity (in C1.Data.Entity.dll)

Syntax

C#
public PagingView<T> Paging<TKey>(
	Expression<Func<T, TKey>> sortKeySelector,
	bool ascending,
	int pageSize
)
Visual Basic
Public Function Paging(Of TKey) ( _
	sortKeySelector As Expression(Of Func(Of T, TKey)), _
	ascending As Boolean, _
	pageSize As Integer _
) As PagingView(Of T)

Parameters

sortKeySelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
A function specifying a sort key.
ascending
Type: System..::..Boolean
A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).
pageSize
Type: System..::..Int32
A value for the PageSize property, the number of items to load in a page.

Type Parameters

TKey
The type of the sort key.

Return Value

A paged client view.

Remarks

Sorting is required, paging entities is impossible without sort.

See Also